﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;

public class EditorGraphDrawer
{
    static Texture2D TaskBorder;
    public static void DrawTexture(Vector2 position)
    {
        if (TaskBorder==null)
        {
            TaskBorder = EditorWindowUtils.LoadTexture("TaskBorder.png");
        }
        Debug.Log(position);
        GUI.DrawTexture(new Rect(position.x, position.y, 100, 100), TaskBorder, ScaleMode.ScaleToFit);
    }

    //private Rect Rectangle(Vector2 offset)
    //{
    //}
}